.class public Lcom/instagram/android/nux/b;
.super Lcom/instagram/android/d/k/p;
.source "CheckUsername.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/k/p",
        "<",
        "Lcom/instagram/android/nux/d;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 22
    invoke-direct {p0}, Lcom/instagram/android/d/k/p;-><init>()V

    return-void
.end method


# virtual methods
.method public synthetic a(Lcom/fasterxml/jackson/databind/JsonNode;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 22
    invoke-virtual {p0, p1}, Lcom/instagram/android/nux/b;->b(Lcom/fasterxml/jackson/databind/JsonNode;)Lcom/instagram/android/nux/d;

    move-result-object v0

    return-object v0
.end method

.method public b(Lcom/fasterxml/jackson/databind/JsonNode;)Lcom/instagram/android/nux/d;
    .locals 3
    .parameter

    .prologue
    .line 24
    const-string v0, "username"

    invoke-virtual {p1, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v1

    .line 25
    const-string v0, "available"

    invoke-virtual {p1, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v2

    .line 26
    if-eqz v1, :cond_0

    if-nez v2, :cond_1

    .line 27
    :cond_0
    const/4 v0, 0x0

    .line 29
    :goto_0
    return-object v0

    :cond_1
    new-instance v0, Lcom/instagram/android/nux/d;

    invoke-virtual {v1}, Lcom/fasterxml/jackson/databind/JsonNode;->asText()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2}, Lcom/fasterxml/jackson/databind/JsonNode;->asBoolean()Z

    move-result v2

    invoke-direct {v0, v1, v2}, Lcom/instagram/android/nux/d;-><init>(Ljava/lang/String;Z)V

    goto :goto_0
.end method
